/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.equipment.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 * 设备管理Entity
 * @author ZC
 * @version 2017-04-18
 */
public class EleEquipment extends DataEntity<EleEquipment> {
	
	private static final long serialVersionUID = 1L;
	private EleEquipmentType type;		// 设备类型
	private Office company;	// 归属公司
	private Office office;	// 归属分组
	private String code;		// 设备Id
    private int width;		// 分辨率
    private int height;		// 视频音量
	private int audiovolume;		// 报站音量
	private int videovolume;		// 视频音量
	private String ipaddress;		// ip地址
	private String ipmode;		// 获取IP
	private int hangupthreshold;		// 待机时间
	private int backlights;		// 亮度
	private int sleeplightlevel;		// 休眠时的背光亮度
	private int personlimit;		// 载人
	private int kglimit;		// 载重KG
	private int timezone;		// 时区
	private String language;		// 语言
	private String orientation;		// 方向
	private String mv;		// 单片机APP版本
	private String pv;		// 显示APP版本
	private String sv;		// 设置APP版本
	private String floorMapping;		// 楼层映射
	private String address; // 位置/项目
	
	public EleEquipment() {
		super();
	}

	public EleEquipment(String id){
		super(id);
	}

	public EleEquipmentType getType() {
		return type;
	}

	public void setType(EleEquipmentType type) {
		this.type = type;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getAudiovolume() {
		return audiovolume;
	}

	public void setAudiovolume(int audiovolume) {
		this.audiovolume = audiovolume;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getVideovolume() {
		return videovolume;
	}

	public void setVideovolume(int videovolume) {
		this.videovolume = videovolume;
	}
	
	@Length(min=0, max=255, message="ip地址长度必须介于 0 和 255 之间")
	public String getIpaddress() {
		return ipaddress;
	}

	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}
	
	public String getIpmode() {
		return ipmode;
	}

	public void setIpmode(String ipmode) {
		this.ipmode = ipmode;
	}
	
	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getHangupthreshold() {
		return hangupthreshold;
	}

	public void setHangupthreshold(int hangupthreshold) {
		this.hangupthreshold = hangupthreshold;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getBacklights() {
		return backlights;
	}

	public void setBacklights(int backlights) {
		this.backlights = backlights;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getSleeplightlevel() {
		return sleeplightlevel;
	}

	public void setSleeplightlevel(int sleeplightlevel) {
		this.sleeplightlevel = sleeplightlevel;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getPersonlimit() {
		return personlimit;
	}

	public void setPersonlimit(int personlimit) {
		this.personlimit = personlimit;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getKglimit() {
		return kglimit;
	}

	public void setKglimit(int kglimit) {
		this.kglimit = kglimit;
	}

	@Range(min=0, max=100, message="待机时间长度必须介于 0 和 100 之间")
	public int getTimezone() {
		return timezone;
	}

	public void setTimezone(int timezone) {
		this.timezone = timezone;
	}
	
	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}
	
	public String getOrientation() {
		return orientation;
	}

	public void setOrientation(String orientation) {
		this.orientation = orientation;
	}
	
	@Length(min=0, max=255, message="单片机APP版本长度必须介于 0 和 255 之间")
	public String getMv() {
		return mv;
	}

	public void setMv(String mv) {
		this.mv = mv;
	}
	
	@Length(min=0, max=255, message="显示APP版本长度必须介于 0 和 255 之间")
	public String getPv() {
		return pv;
	}

	public void setPv(String pv) {
		this.pv = pv;
	}
	
	@Length(min=0, max=255, message="设置APP版本长度必须介于 0 和 255 之间")
	public String getSv() {
		return sv;
	}

	public void setSv(String sv) {
		this.sv = sv;
	}
	
	@Length(min=0, max=100, message="楼层映射长度必须介于 0 和 100 之间")
	public String getFloorMapping() {
		return floorMapping;
	}

	public void setFloorMapping(String floorMapping) {
		this.floorMapping = floorMapping;
	}

	@Length(min=0, max=255, message="位置/项目长度必须介于 0 和 255 之间")
	public String getAddress(){
		return address;
	}

	public void setAddress(String address){
		this.address = address;
	}

	public Office getCompany(){
		return company;
	}

	public void setCompany(Office company){
		this.company = company;
	}

	public Office getOffice(){
		return office;
	}

	public void setOffice(Office office){
		this.office = office;
	}

	public String getCode(){
		return code;
	}

	public void setCode(String code){
		this.code = code;
	}

    public int getWidth(){
        return width;
    }

    public void setWidth(int width){
        this.width = width;
    }

    public int getHeight(){
        return height;
    }

    public void setHeight(int height){
        this.height = height;
    }
}